<!--
 * @Author: ChunLai
 * @Date: 2022-10-25 11:24:53
 * @LastEditTime: 2025-07-23 09:30:27
 * @Description: 产品介绍
 * @FilePath: \02.bldinsure\src\views\index\components\ProIntroduce.vue
-->
<template>
  <div class="pro_detail_module">
    <div class="md_pic" v-lazy-container="{ selector: 'img' }">
      <img
        v-for="(img, idx) in productImg"
        :key="idx"
        :data-src="`${img}?v=${new Date().getTime()}`"
      />
    </div>
    <div class="baosi_html_box" v-html="baosiHtml" v-if="baosiHtml"></div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "ProIntroduce",
  data() {
    return {};
  },
  components: {},
  computed: {
    ...mapGetters({
      productImg: "home/productImg",
      baosiHtml: "page/baosiHtml",
      apiClauseList: "home/apiClauseList",
    }),
    clauseNoList() {
      return this.apiClauseList.filter((item) => item.clauseNo);
    },
  },
  methods: {
    goReadPage(item) {
      if (!item.fileUrl) return this.$toast("未查询到文件");
      // 使用新版PDF展示页
      this.$router.push(`/read?ftype=${item.suffixType}&fid=${item.id}`);
    },
  },
};
</script>

<style lang="less" scoped>
.pro_detail_module {
  background-color: #fff;
}
.baosi_html_box {
  font-size: 12px;
  color: #747474;
  padding: 10px 14px;
}
.md_pic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;

  img {
    display: block;
    max-width: 100%;
  }
}
</style>
